package core;

import core.Rules;

import gui.EffectPopupInfo;
import gui.GUIMainFrame;
import gui.ImageHandler;
import gui.MenuFrame;
import gui.GUIConstants.PopupSize;
import card.CostCalculator;
import card.CreatureCard;
import card.creatures.*;


import core.Constants.ConnectionType;
import core.Rules.Menu;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		//Used for calculating creature cost.
		//System.out.println(CostCalculator.calculateCost(new MagmaDragon()));
		
		Constants.setConnectionState(ConnectionType.DISCONNECTED);		
	
		ImageHandler.getInstance(); //should force image loading.


		PlayerGenerator.getInstance().initiatePlayers(Constants.PLAYERS);
		Core.getInstance().setThisPlayer(Core.getInstance().getPlayers().get(0));
		GUIMainFrame mf = new GUIMainFrame();
		mf.setVisible(true);
		TurnController.getInstance().changeTurn();

	}

}
